package com.j2eefast.bussiness.contract.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>折旧管理</p>
 *
 * @author: summer
 * @date: 2021-06-06 14:41
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
@Data
@TableName("bus_depreciation")
@HeadRowHeight(20)
@ColumnWidth(15)		// 表头行宽
@HeadFontStyle(fontHeightInPoints = 12)
@ExcelIgnoreUnannotated
public class BusDepreciationEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ExcelIgnore
    protected Integer id;
    //使用部门
    @TableField(value = "department")
    @ExcelProperty(value = "使用部门",index = 0)
    protected String department;
    //设备编码
    @TableField(value = "equipment_code")
    @ExcelProperty(value = "设备编码",index = 1)
    protected String equipmentCode;
    //设备名称
    @TableField(value = "equipment_name")
    @ExcelProperty(value = "设备名称",index = 2)
    protected String equipmentName;
    //型号
    @TableField(value = "equipment_model")
    @ExcelProperty(value = "型号",index = 3)
    protected String equipmentModel;

    //净残值率
    @TableField(value = "jingcan_value")
    @ExcelProperty(value = "净残值率",index = 5)
    protected String jingcanValue;
    //使用年限
    @TableField(value = "age")
    @ExcelProperty(value = "使用年限",index = 6)
    protected String age;
    //设备原值
    @TableField(value = "equipment_value")
    @ExcelProperty(value = "设备原值",index = 7)
    protected String equipmentValue;
    //净残值
    @TableField(value = "worth_value")
    @ExcelProperty(value = "净残值",index = 8)
    protected String worthValue;

    //净值
    @TableField(value = "worth")
    @ExcelProperty(value = "净值",index = 9)
    protected String worth;

    //月折旧
    @TableField(value = "month_depreciation")
    @ExcelProperty(value = "月折旧",index = 10)
    protected String monthDepreciation;
    //累计折旧
    @TableField(value = "total_depreciation")
    @ExcelProperty(value = "累计折旧",index = 11)
    protected String totalDepreciation;
    //备注
    @TableField(value = "remark")
    protected String remark;
    //创建日期
    @TableField(value = "create_time")
    @ExcelProperty(value = "创建日期",index = 4)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    protected Date createTime;
    //更新日期
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    protected Date updateTime;
    //创建人
    @TableField(value = "create_by")
    protected String createBy;
    //更新人
    @TableField(value = "update_by")
    protected String updateBy;


    @Override
    public String toString() {
        return super.toString();
    }
}
